HDDS-16120. A single MiniOzoneCluster build timeout cascades into whole-suite failures in MiniOzoneClusterProvider - #10989
Open
echonesis wants to merge 1 commit into
Open
HDDS-16120. A single MiniOzoneCluster build timeout cascades into whole-suite failures in MiniOzoneClusterProvider#10989echonesis wants to merge 1 commit into
echonesis wants to merge 1 commit into
Conversation
…le-suite failures in MiniOzoneClusterProvider
echonesis
marked this pull request as ready for review
August 12, 2026 01:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
MiniOzoneClusterProvidercreates clusters on a background thread and passes them to consumers through a bounded blocking queue. Previously, anIOExceptionorTimeoutExceptionduring cluster creation terminated the background thread. The queue was then never refilled, causing every subsequentprovide()call to wait for 100 seconds and fail with the misleadingFailed to obtain available cluster in timemessage.This change passes both successful clusters and build failures through the existing bounded queue:
provide()call, with the original exception preserved as its cause.provide()calls can receive successfully created clusters.The queue capacity remains one and
put()is blocking, providing natural backpressure when builds fail persistently. This prevents the create thread from processing failures in an unbounded tight loop without introducing a retry limit, backoff duration, or polling interval.The change limits the blast radius of an individual cluster startup failure. It does not attempt to address the underlying cause of slow cluster startup.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-16120
How was this patch tested?
Local Test
mvn -pl :ozone-mini-cluster test \ -Dtest=TestMiniOzoneClusterProvider \ -DskipShade -DskipRecon -DskipDocsGitHub Actions CI: https://github.com/echonesis/ozone/actions/runs/31478614848
Generated-by: Codex (GPT-5)